﻿using A.M.ETO;
using AutoMapper;
using J.M.Inventory.Application.IInventoryServices;
using J.M.Inventory.Application.InventoryServices;
using J.M.Inventory.Domain.DTO;
using J.M.Inventory.Domain.Entity;
using J.M.Inventory.Infrastruecure.InventoryRepository;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Linq.Expressions;

namespace J.M.Inventory.Read.API.Controllers
{
    /// <summary>
    /// 盘点出库表
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Examine_warehouseReadController : ControllerBase
    {
        private readonly IExamine_warehouseServices _examine_warehouseServices;

        public Examine_warehouseReadController(IExamine_warehouseServices _examine_warehouseServices)
        {
            this._examine_warehouseServices = _examine_warehouseServices;
        }
        /// <summary>
        /// 盘点库存表显示
        /// </summary>
        /// <param name="code"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        [HttpGet]
        public IActionResult GetExamine_warehouseShow1(string? code, int pageIndex, int pageSize)
        {
            var res=  _examine_warehouseServices.GetExamine_warehouseShow1(code, pageIndex, pageSize);
            return Ok(res);
        }
    }
}
